package com.ishanggang.controller;

import com.ishanggang.service.QuickBiService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * quickBI
 */
@RestController
@RequestMapping("/quickBi")
public class QuickBiController {

    @Resource
    private QuickBiService quickBiService;

    @RequestMapping(value = {"/initQuickBiStoreInfo"})
    String initQuickBiStoreInfo() {
        this.quickBiService.initRedisJddjStoreInfo();
        return "redis init!";
    }

    @RequestMapping(value = {"/checkSameShop"})
    String checkSameShop() {
        this.quickBiService.checkSameShop();
        return "checkSameShop success!";
    }

    /**
     * 联合立华门店匹配爱上岗门店
     * @return
     */
    @RequestMapping(value = {"/checkIcShop"})
    String checkIcShop() {
        this.quickBiService.checkIcShop();
        return "checkSameShop success!";
    }

}
